package com.ly.heart.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ly.heart.domain.KingRealInventoryEntity;
import com.ly.heart.domain.dto.KingRealInventoryQueryDto;

/**
 * 金蝶-即时库存，出入库实时更新Mapper接口
 * @author wutao
 * @date 2024-07-24
 */
public interface KingRealInventoryMapper extends BaseMapper<KingRealInventoryEntity> {
    /**
     * 查询金蝶-即时库存，出入库实时更新
     * @param id 金蝶-即时库存，出入库实时更新ID
     * @return 金蝶-即时库存，出入库实时更新
     */
    KingRealInventoryEntity selectKingRealInventoryEntityById (String id);

    /**
     * 查询金蝶-即时库存，出入库实时更新列表
     * @param kingRealInventoryEntity 金蝶-即时库存，出入库实时更新
     * @return 金蝶-即时库存，出入库实时更新集合
     */
    List<KingRealInventoryEntity> selectKingRealInventoryEntityList (KingRealInventoryEntity kingRealInventoryEntity);

    Integer queryCount (KingRealInventoryEntity kingRealInventoryEntity);

    /**
     * 新增金蝶-即时库存，出入库实时更新
     * @param kingRealInventoryEntity 金蝶-即时库存，出入库实时更新
     * @return 结果
     */
    int insertKingRealInventoryEntity (KingRealInventoryEntity kingRealInventoryEntity);

    /**
     * 修改金蝶-即时库存，出入库实时更新
     * @param kingRealInventoryEntity 金蝶-即时库存，出入库实时更新
     * @return 结果
     */
    int updateKingRealInventoryEntity (KingRealInventoryEntity kingRealInventoryEntity);

    /**
     * 删除金蝶-即时库存，出入库实时更新
     * @param id 金蝶-即时库存，出入库实时更新ID
     * @return 结果
     */
    int deleteKingRealInventoryEntityById (String id);

    /**
     * 批量删除金蝶-即时库存，出入库实时更新
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    int deleteKingRealInventoryEntityByIds (String[] ids);

    /**
     * 根据物料,仓库,仓位查询实时库存
     * @return
     */
    KingRealInventoryEntity getRealInventoryByMaterialAndWarehouseAndPosition (KingRealInventoryQueryDto realInventoryQueryDto);
}
